package com.yidu.sanrenxing.homedata.service.impl;

import com.yidu.sanrenxing.homedata.dao.ComTypeMapper;
import com.yidu.sanrenxing.homedata.domain.ComType;
import com.yidu.sanrenxing.homedata.service.ComTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ComTypeServiveImpl implements ComTypeService {
    @Autowired
    ComTypeMapper comTypeMapper;

    @Override
    public List<ComType> selectAllComType() {
        return comTypeMapper.selectAllComType();
    }

    @Override
    public int deleteByPrimaryKey(int comtypeid) {
        return comTypeMapper.deleteByPrimaryKey(comtypeid);
    }

    @Override
    public int insert(ComType record) {
        return comTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(ComType record) {
        return comTypeMapper.insertSelective(record);
    }

    @Override
    public ComType selectByPrimaryKey(int comtypeid) {
        return comTypeMapper.selectByPrimaryKey(comtypeid);
    }

    @Override
    public int updateByPrimaryKeySelective(ComType record) {
        return comTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ComType record) {
        return comTypeMapper.updateByPrimaryKey(record);
    }
}
